<template>
  <div class="bottomLeft">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <i class="iconfont icon-chart-line" />
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2 mt-1  title-size">课程价格分布</span>
        </div>
      </div>
      <div>
        <chart ref="priceBarRef"/>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import Chart from "./chart/index";
import { ref } from 'vue'

const priceBarRef = ref()

const setData = (data: any) => {
  priceBarRef.value.setPriceBarData(data)
  // console.log('rateLine_index.vue','& rateLineChart.value',rateLineChart.value);
}

defineExpose({
  setData
})
</script>

<style lang="scss" scoped>
$box-height: 200px;
$box-width: 100%;
.bottomLeft {
  padding: 0 16px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    //height: $box-height - 35px;
    border-radius: 10px;
  }
  .title-size{
    font-size: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
}
</style>
